package com.ruoyi.sale.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 销售出库产品对象 t_sale_out_product
 * 
 * @author ruoyi
 * @date 2024-11-04
 */
@Setter
@Getter
@Data
public class SaleOutProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 销售出库 id */
    @Excel(name = "销售出库 id")
    private Long outId;

    /** 仓库 id */
    @Excel(name = "仓库 id")
    private Long warehouseId;

    /** 产品 id */
    @Excel(name = "产品 id")
    private Long productId;

    //产品编号
    private String productNo;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("outId", getOutId())
            .append("warehouseId", getWarehouseId())
            .append("productId", getProductId())
            .append("number", getNumber())
            .append("remark", getRemark())
            .toString();
    }
}
